package com.example.a047.lkcollect;

import android.app.Application;
import android.util.Log;

import com.example.lklibrary.bi.ActivityLifecycleListener;
import com.example.lklibrary.bi.LKCollector;
import com.example.lklibrary.bi.exception.LKUncaughtExceptionHandler;

public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        LKCollector.initLKCollector(this, "uid", "appKey"
        ,"userInfo");
        registerActivityLifecycleCallbacks(new ActivityLifecycleListener());
        Thread.setDefaultUncaughtExceptionHandler(new LKUncaughtExceptionHandler(getApplicationContext(), false));
    }
}
